package io.renren.modules.stock.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.stock.dao.CreditCardDao;
import io.renren.modules.stock.entity.CreditCardEntity;
import io.renren.modules.stock.service.CreditCardService;


@Service("creditCardService")
public class CreditCardServiceImpl extends ServiceImpl<CreditCardDao, CreditCardEntity> implements CreditCardService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CreditCardEntity> page = this.page(
                new Query<CreditCardEntity>().getPage(params),
                new QueryWrapper<CreditCardEntity>()
        );

        return new PageUtils(page);
    }

}